Optimal. Leaf size=51 \[ -\frac {a^2 A}{2 x^2}+\frac {1}{2} b x^2 (2 a B+A b)+a \log (x) (a B+2 A b)+\frac {1}{4} b^2 B x^4 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {446, 76} \[ -\frac {a^2 A}{2 x^2}+\frac {1}{2} b x^2 (2 a B+A b)+a \log (x) (a B+2 A b)+\frac {1}{4} b^2 B x^4 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 76
Rule 446
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^2 \left (A+B x^2\right )}{x^3} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {(a+b x)^2 (A+B x)}{x^2} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (b (A b+2 a B)+\frac {a^2 A}{x^2}+\frac {a (2 A b+a B)}{x}+b^2 B x\right ) \, dx,x,x^2\right )\\ &=-\frac {a^2 A}{2 x^2}+\frac {1}{2} b (A b+2 a B) x^2+\frac {1}{4} b^2 B x^4+a (2 A b+a B) \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 49, normalized size = 0.96 \[ \frac {1}{4} \left (-\frac {2 a^2 A}{x^2}+2 b x^2 (2 a B+A b)+4 a \log (x) (a B+2 A b)+b^2 B x^4\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 54, normalized size = 1.06 \[ \frac {B b^{2} x^{6} + 2 \, {\left (2 \, B a b + A b^{2}\right )} x^{4} + 4 \, {\left (B a^{2} + 2 \, A a b\right )} x^{2} \log \relax (x) - 2 \, A a^{2}}{4 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.33, size = 70, normalized size = 1.37 \[ \frac {1}{4} \, B b^{2} x^{4} + B a b x^{2} + \frac {1}{2} \, A b^{2} x^{2} + \frac {1}{2} \, {\left (B a^{2} + 2 \, A a b\right )} \log \left (x^{2}\right ) - \frac {B a^{2} x^{2} + 2 \, A a b x^{2} + A a^{2}}{2 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 50, normalized size = 0.98 \[ \frac {B \,b^{2} x^{4}}{4}+\frac {A \,b^{2} x^{2}}{2}+B a b \,x^{2}+2 A a b \ln \relax (x )+B \,a^{2} \ln \relax (x )-\frac {A \,a^{2}}{2 x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.36, size = 52, normalized size = 1.02 \[ \frac {1}{4} \, B b^{2} x^{4} + \frac {1}{2} \, {\left (2 \, B a b + A b^{2}\right )} x^{2} + \frac {1}{2} \, {\left (B a^{2} + 2 \, A a b\right )} \log \left (x^{2}\right ) - \frac {A a^{2}}{2 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 48, normalized size = 0.94 \[ x^2\,\left (\frac {A\,b^2}{2}+B\,a\,b\right )+\ln \relax (x)\,\left (B\,a^2+2\,A\,b\,a\right )-\frac {A\,a^2}{2\,x^2}+\frac {B\,b^2\,x^4}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.24, size = 48, normalized size = 0.94 \[ - \frac {A a^{2}}{2 x^{2}} + \frac {B b^{2} x^{4}}{4} + a \left (2 A b + B a\right ) \log {\relax (x )} + x^{2} \left (\frac {A b^{2}}{2} + B a b\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________